home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8458 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: druid.borland.com!usenet
  2. From: pete@borland.com (Pete Becker)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: HELP: TCW 4.5 container class compile errors
  5. Date: 18 Feb 1996 20:03:13 GMT
  6. Organization: Borland International
  7. Message-ID: <4g80m1$fbk@druid.borland.com>
  8. References: <31275FD2.6C4A@cyberus.ca>
  9. NNTP-Posting-Host: pbecker.borland.com
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=ISO-8859-1
  12. X-Newsreader: WinVN 0.99.5
  13.  
  14. In article <31275FD2.6C4A@cyberus.ca>, tpepin@cyberus.ca says...
  15. >
  16. >Hi All,
  17. >
  18. >Has anyone out there run into the following problem? I'm trying to use one of 
  19. the Borland
  20. >container classes to implement an array for one of my classes:
  21. >
  22. >  #include <classlib/arrays.h>
  23. >  #include "myclass.h"
  24. >  TIArrayAsVector<MyClass> myList(10,0,10);
  25. >  // code which uses the list...
  26. >
  27. >When I try and compile this source, I get the following error:
  28. >  Error ..\TCWIN45\INCLUDE\CLASSLIB\VECTIMP.H 1216: Illegal structure 
  29. operation in 
  30. >    function TMICVectorImp<PSpcDamage,TStandardAllocator>::Find(const 
  31. PSpcDamage *) const
  32. >
  33. >I'm kind of at a loss as to where to even begin trying to fix this. Any help 
  34. would 
  35. >be greatly appreciated.
  36. >
  37.  
  38. The place to begin is suggested by the error message. Look at line 1216 in 
  39. vectimp.h and see what kind of operation it is trying to perform. That should 
  40. give you a clue as to the actual problem. That stuff is hard to read, though, 
  41. so here's a more helpful clue: PSpcDamage needs to have an operator== and an 
  42. operator<.
  43.     -- Pete
  44.  
  45.